package com.managementSystem.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.shared.HandlerManager;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.google.gwt.user.client.ui.RootPanel;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
@RemoteServiceRelativePath("login")
public class ServiceDesk implements EntryPoint {
	public void onModuleLoad() {
	    StaffBeanServiceAsync rpcStaffService = GWT.create(StaffBeanService.class);
	    RegisterBeanServiceAsync rpcRegisterService = GWT.create(RegisterBeanService.class);
	    HandlerManager eventBus = new HandlerManager(null);
	    AppController appViewer = new AppController(rpcStaffService, rpcRegisterService, eventBus);
	    appViewer.go(RootPanel.get());
	  }
}
